***Replication Files for "Conflict Environments and Civil War" (JOGSS)
*** Reid, Myrick Kadera, & Crescenzi (2020) ***

*This do-file contains replication details for figures and tables in RMKC 2020.
*See "CE Scores RMKC Rep Do File" for replication of the Conflict Environment (CE) Score.

**REPLICATION OF FIGURES

*Figure 1: Conflict Environment Scores Plot
twoway (scatter cces_acd year if year > 1959 & year < 2007, sort msymbol(lgx)), ytitle(Civil CE Score (ACD)) ylabel(0(1)4) xtitle(Year) xlabel(1960(10)2010) note("Calculated using UCDP ACDv4") scheme(s1mono)

*Figure 3: Predicted Probabilities of Civil War Onset
probit acdonset cces_acd lnrgdpchl lnpopl ethnichet politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
prgen cces_acd, from(0) to (3.5) generate (prlfp) rest(median) gap(0.5) ci
label var prlfpp1 "Predicted Probability"
label var prlfpp1ub "95% upper limit"
label var prlfpp1lb "95% lower limit"
label var prlfpx "CE Score ACD (Pred)"
graph twoway (rarea prlfpp1lb prlfpp1ub prlfpx, color(gs14)) (connected prlfpp1 prlfpx, clcolor(black) clpat(solid) clwidth(medthick) msymbol(i) mcolor(none)), title("Probability of Civil Conflict Onset Given Conflict Environment") ytitle("Probability of Conflict Onset") yscale(range (0 0.05)) ylabel(, grid glwidth(medium) glpattern(solid)) xscale (range (0 3.5)) xlabel (0(0.5)3.5) legend(label (1 "95% confidence interval")) scheme(s1mono)

*Note: Figure 5 & 6 created in R 

**REPLICATION OF TABLES IN TEXT

*Table 3: Effects of the Conflict Environment on Civil War Onset
eststo: quietly probit acdonset lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table3.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Effects of the Conflict Environment on Civil War Onset\label{tab1}) b(3) se(3) aic bic obslast compress nogaps order(cces_acd cces_cow lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3) mtitles("ACD" "ACD" "COW" "COW") addnote("Control variables lagged one year") 

*Table 4: Regional and Neighborhood Effects on Civil War Onset
*eststo: quietly probit acdonset lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset slc_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset slco_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset ncivwar_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset regwar_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset neighlgdp lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table4.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional and Neighborhood Effects on Armed Conflict (ACD, No Lag)\label{tab2}) b(3) se(3) aic bic obslast compress nogaps order(slc_acd slco_acd ncivwar_acd regwar_acd neighlgdp lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year")

**REPLICATION OF TABLES IN ONLINE APPENDIX

*Table 1: Space, Time, and Civil Conflict (ACD, No Lags)
estimates clear
eststo: quietly probit acdonset lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset slc_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset slco_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table1.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Space, Time, and Civil Conflict (ACD, No Lag)\label{tab1}) se(3) aic bic obslast compress nogaps order(slc_acd slco_acd cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year")

*Table 2: Space, Time, and Civil Conflict (ACD, Lagged)
estimates clear
eststo: quietly probit acdonset lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset slc_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset slco_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table2.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Space, Time, and Civil Conflict (ACD, Lagged)\label{tab1}) se(3) aic bic obslast compress nogaps order(slc_acd_1 slco_acd_1 cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year") 

*Table 3: Space, Time, and Civil Conflict (COW, No Lags)
estimates clear
eststo: quietly probit cowonset lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset slc_civil lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset slco_civil lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table3.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Space, Time, and Civil Conflict (COW, No Lag)\label{tab1}) se(3) aic bic obslast compress nogaps order(slc_civil slco_civil cces_cow lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year") 

* Table 4: Space, Time, and Civil Conflict (COW, Lagged)
estimates clear
eststo: quietly probit cowonset lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset slc_civil_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset slco_civil_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table4.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Space, Time, and Civil Conflict (COW, Lagged)\label{tab1}) se(3) aic bic obslast compress nogaps order(slc_civil_1 slco_civil_1 cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year") 

*Table 5: Regional and Neighborhood Effects on Armed Conflict (ACD, No Lags)
estimates clear
eststo: quietly probit acdonset lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset ncivwar_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset regwar_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset neighlgdp lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table5.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional and Neighborhood Effects on Armed Conflict (ACD, No Lag)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd ncivwar_acd regwar_acd neighlgdp lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year")

* Table 6: Regional and Neighborhood Effects on Armed Conflict (ACD, Lagged)
estimates clear
eststo: quietly probit acdonset lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset ncivwar_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset regwar_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset neighlgdp_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table6.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional and Neighborhood Effects on Armed Conflict (ACD, Lagged)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd_1 ncivwar_acd_1 regwar_acd_1 neighlgdp_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year")

*Table 7: Regional and Neighborhood Effects on Civil War (COW Data)
estimates clear
eststo: quietly probit cowonset lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset ncivwar_cow lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset regwar_cow lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset neighlgdp lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table7.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional and Neighborhood Effects on Civil War (COW Data)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_cow ncivwar_cow regwar_cow neighlgdp lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year")

*Table 8: Regional and Neighborhood Effects on Civil War (COW, Lagged)
estimates clear
eststo: quietly probit cowonset lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset ncivwar_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset regwar_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset neighlgdp_1 lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table8.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional and Neighborhood Effects on Civil War (COW Data)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_cow_1 ncivwar_cow_1 regwar_cow_1 neighlgdp_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Control variables lagged one year")

*Table 9: Alternative Onset Coding (Sets Ongoing Wars to 0)
estimates clear
eststo: quietly probit acdonset2 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset2 cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset2 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset2 cces_cow lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table9.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Alternative Onset Coding (Sets Ongoing Wars to 0)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd cces_cow lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3) mtitles("ACD" "ACD" "COW" "COW") addnote("Control variables lagged one year") 

*Table 10: Ethnic Diversity Variables
estimates clear
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl exclpopl polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl exclpopl polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethfrac polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethfrac polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table10.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Ethnic Diversity Variables\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd cces_cow ethnichet exclpopl ethfrac lnrgdpchl lnpopl polityl politysql t t2 t3) mtitles("ACD" "COW" "ACD" "COW" "ACD" "COW") addnote("Control variables lagged one year")

*Table 11: Democracy and Political Stability
estimates clear
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql polity t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql polity t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql regchg3 t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql regchg3 t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table11.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Democracy and Political Stability\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd cces_cow lnrgdpchl lnpopl ethnichet polityl politysql polity regchg3 t t2 t3) mtitles("ACD" "COW" "ACD" "COW") addnote("Control variables lagged one year")

*Table 12: Regional Effects (ACD)
estimates clear
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql western t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql eeurop t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql lamerica t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql ssafrica t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql asia t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit acdonset cces_acd_1 lnrgdpchl lnpopl ethnichet polityl politysql nafrme t t2 t3 if year>1959 & year<2007, nolog
esttab using table12.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional Effects (ACD Data)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  western eeurop lamerica ssafrica asia nafrme t t2 t3) addnote("Control variables lagged one year")

*Table 13: Regional Effects (COW)
estimates clear
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql western t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql eeurop t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql lamerica t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql ssafrica t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql asia t t2 t3 if year>1959 & year<2007, nolog
eststo: quietly probit cowonset cces_cow_1 lnrgdpchl lnpopl ethnichet polityl politysql nafrme t t2 t3 if year>1959 & year<2007, nolog
esttab using table13.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Regional Effects (COW Data)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_cow lnrgdpchl lnpopl ethnichet polityl politysql  western eeurop lamerica ssafrica asia nafrme t t2 t3) addnote("Control variables lagged one year")

*Table 14: Alternative Minimum Distance (2000km)
estimates clear
eststo: quietly probit lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset cces_acd2000 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table14.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Alternative Distance Threshold (ACD, 2000km Minimum Distance)\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd2000 lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3) addnote("Variables lagged one year (except neighborhood and time variables)") 


*Table 15: Rerun with Territorial vs. Government ACD Onsets
eststo: quietly probit acdonset_g lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset_g cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset_t lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
eststo: quietly probit acdonset_t cces_acd lnrgdpchl lnpopl ethnichet polityl politysql  t t2 t3 if year>1959 & year<2007, cluster (ccode) nolog
esttab using table15.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Territorial versus Government Conflict Onsets\label{tab1}) b(3) se(3) aic bic obslast compress nogaps order(cces_acd lnrgdpchl lnpopl ethnichet polityl politysql t t2 t3) mtitles("Government" "Government" "Territory" "Territory") addnote("Control variables lagged one year") 

*Table 16: Rerunning Fearon & Laitin (2003)
*Use with Fearon and Laitin (2003) data -- "repdata.dta"
estimates clear
eststo: logit cowonset cowwarl gdpenl lpopl lmtnest ncontig Oil nwstate instab anocl deml ethfrac relfrac ,nolog
eststo: logit cowonset cces_cow cowwarl gdpenl lpopl lmtnest ncontig Oil nwstate instab anocl deml ethfrac relfrac ,nolog
esttab using table16.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Fearon & Laitin (2003) Replication\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_cow cowwarl gdpenl lpopl lmtnest ncontig Oil nwstate instab anocl deml ethfrac relfrac) addnote("Used with Fearon & Laitin (2003) Replication Dataset")

*Table 17: Rerunning Buhaug & Gleditsch (2008) -- Part I
*Use with Buhaug & Gleditsch (2008) data -- "hsb-ksg-replication.dta"
estimates clear
eststo: quietly logit acd3onset ncivwar neighpol neighpolsq neighlgdp post peaceall, nolog robust
eststo: quietly logit acd3onset neighall neighpol neighpolsq neighlgdp post peaceall, nolog robust
eststo: quietly logit acd3onset cces_acd3_1 neighpol neighpolsq neighlgdp post peaceall, nolog robust
eststo: quietly logit acd3onset ncivwar neighpol neighpolsq neighlgdp polity2l polity2sq lgdp96l lnpop post peaceall, nolog robust
eststo: quietly logit acd3onset neighall neighpol neighpolsq neighlgdp polity2l polity2sq lgdp96l lnpop post peaceall, nolog robust
eststo: quietly logit acd3onset cces_acd3_1 neighpol neighpolsq neighlgdp polity2l polity2sq lgdp96l lnpop post peaceall, nolog robust
esttab using table17.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Buhaug & Gleditsch (2008) Replication\label{tab1}) se(3) aic bic obslast compress nogaps order(ncivwar neighall cces_acd3_1 neighpol neighpolsq neighlgdp polity2l polity2sq lgdp96l lnpop post peaceall) addnote("Used with Buhaug & Gleditsch (2008) Replication Dataset")

*Table 18: Rerun with Bara (2017)
*Use with Bara (2017) data in JCR
estimates clear
eststo: quietly logit RConset cces_acd lSCpolity lSCpolitysquared lnlSCgdpcap lRCpolity lRCpolitysquared lnlRCgdpcap lnlRCpop1000 postcw RCpeaceyears RCpeaceyears2 RCpeaceyears3, nolog robust
eststo: quietly logit RConset SCanyactive lSCpolity lSCpolitysquared lnlSCgdpcap lRCpolity lRCpolitysquared lnlRCgdpcap lnlRCpop1000 postcw RCpeaceyears RCpeaceyears2 RCpeaceyears3, nolog robust
eststo: quietly logit RConset SCanyactive SCpc3 lSCpolity lSCpolitysquared lnlSCgdpcap lRCpolity lRCpolitysquared lnlRCgdpcap lnlRCpop1000 postcw RCpeaceyears RCpeaceyears2 RCpeaceyears3, nolog robust
eststo: quietly logit RConset SCanyactive i.SCpc_3count3 lSCpolity lSCpolitysquared lnlSCgdpcap lRCpolity lRCpolitysquared lnlRCgdpcap lnlRCpop1000 postcw RCpeaceyears RCpeaceyears2 RCpeaceyears3, nolog robust
esttab using table18.tex, label replace booktabs alignment(D{.}{.}{-1}) title(Bara (2017) Replication\label{tab1}) se(3) aic bic obslast compress nogaps order(cces_acd SCanyactive SCpc3 lSCpolity lSCpolitysquared lnlSCgdpcap lRCpolity lRCpolitysquared lnlRCgdpcap lnlRCpop1000 postcw RCpeaceyears RCpeaceyears2 RCpeaceyears3) addnote("Used with Bara (2017) Replication Dataset 1")
